// 封装用户请求的模块
import request from "../utils/request";
import store from "../store";
// 登录接口
export const login = (data) => {
  return request({
    method: "POST",
    url: "/user/login",
    data,
  });
};
// 获取用户自己完整的信息
export const getUserInfo = (id) => {
  return request({
    method: "GET",
    url: "/userInfo/get",
    params: {
      userId: id,
    },
    // header: {
    //   Authorization: `Bearer ${store.state.user.myToken}`,
    // },
  });
};
